package com.bzkj.basicinfo.mapper.putaway;

import com.bzkj.basicinfo.domain.putaway.WmsPutawayDetailEntity;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
 * 上架明细Mapper接口
 *
 *@author lixinyu
 * @date 2025-10-22
 */
public interface WmsPutawayDetailMapper {

    /**
     * 查询上架明细列表
     */
    List<WmsPutawayDetailEntity> selectPutawayDetailList(WmsPutawayDetailEntity entity);

    /**
     * 根据ID查询上架明细
     */
    WmsPutawayDetailEntity selectPutawayDetailById(@Param("id") Long id);

    /**
     * 根据任务ID查询上架明细
     */
    List<WmsPutawayDetailEntity> selectPutawayDetailByTaskId(@Param("taskId") Long taskId);

    /**
     * 新增上架明细
     */
    int insertPutawayDetail(WmsPutawayDetailEntity entity);

    /**
     * 批量新增上架明细
     */
    int insertPutawayDetailBatch(@Param("list") List<WmsPutawayDetailEntity> list);

    /**
     * 更新上架明细
     */
    int updatePutawayDetail(WmsPutawayDetailEntity entity);

    /**
     * 删除上架明细
     */
    int deletePutawayDetailById(@Param("id") Long id);

    /**
     * 根据任务ID删除上架明细
     */
    int deletePutawayDetailByTaskId(@Param("taskId") Long taskId);
}
